package com.ity.teamanagement.mapper;

import com.ity.teamanagement.entity.DownNavigation;
import com.ity.teamanagement.entity.outputResult.DownNavigationVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author coderFu
 * @create 2021/11/10
 */
@Mapper
public interface DownNavigationMapper {

    /**
     * 新增底部导航模块
     * @param downNavigation
     * @return
     */
    Integer addDownNavigation(DownNavigation downNavigation);

    /**
     * 根据导航id删除导航
     * @param id
     * @return
     */
    Integer deleteDownNavigation(Integer id);

    /**
     * 根据导航id更新导航信息
     * @param downNavigation
     * @return
     */
    Integer updateDownNavigation(DownNavigation downNavigation);

    /**
     * 获取底部导航列表
     * @return
     */
    List<DownNavigationVo> getDownNavigation();

    /**
     * 根据底部导航id获取导航信息
     * @param id
     * @return
     */
    DownNavigation getDownNavigationById(Integer id);
}
